package com.java1234.dao;

import java.sql.Connection;
import java.sql.ResultSet;
import com.java1234.model.Borrow;
import com.java1234.model.Librarian;

public interface IBorrowDao {
	public int add(Connection con, Borrow borrow) throws Exception;// 往returnBook表插入信息

	public int update(Connection con, Borrow borrow) throws Exception;// 更新图书借阅表集合

	public ResultSet list(Connection con, Borrow borrow) throws Exception;// 查询图书借阅表集合

	public boolean existBorrowByBorrower(Connection con, String bookTypeId) throws Exception;// 指定借阅者信息下是否存在借阅记录

	public boolean existBorrowByBookId(Connection con, String bookId) throws Exception;// 指定图书下是否存在借阅记录
}
